package com.yisu.auction.api.domain.vo.activityPackageVos;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * author: 赵杰
 * Business Description：秒杀简化实体
 * createTime：2017/8/24
 */
public class SecKillVo {

    private long secKillId; //秒杀ID
    private String goodsName;//秒杀商品名称
    private String image;//商品图片
    private String startTime;//秒杀开始时间
    private String endTime;//秒杀结束时间
    private Integer allowBuyQualification;//是否允许购买资格
    private Integer allowPlaceAnOrder;//是否允许购买


    public long getSecKillId() {
        return secKillId;
    }

    public void setSecKillId(long secKillId) {
        this.secKillId = secKillId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSSSSS");
        this.startTime = simpleDateFormat.format(startTime);
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSSSSS");
        this.endTime =  simpleDateFormat.format(endTime);
    }

    public Integer getAllowBuyQualification() {
        return allowBuyQualification;
    }

    public void setAllowBuyQualification(Integer allowBuyQualification) {
        this.allowBuyQualification = allowBuyQualification;
    }

    public Integer getAllowPlaceAnOrder() {
        return allowPlaceAnOrder;
    }

    public void setAllowPlaceAnOrder(Integer allowPlaceAnOrder) {
        this.allowPlaceAnOrder = allowPlaceAnOrder;
    }


}
